package com.rookie.redis.module.controller;

import com.rookie.redis.module.annotation.DetectRepeat;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rookie
 */
@RestController
public class TestController {

    @DetectRepeat
    @RequestMapping("test")
    public String test(){
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "ok";
    }
}
